package com.gengyun.gengyunacquistion.controller;

import com.gengyun.gengyunacquistion.mapper.IndicatorMapper;
import org.quartz.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/taskview/view/currentyear/Indicator")
public class Indicator {
    @Qualifier("schedulerFactoryBean")
    @Autowired
    private Scheduler scheduler;
    @Resource
    IndicatorMapper indicatorMapper;

    @GetMapping()//路径的后缀,接口的路径不能重复
    public List<com.gengyun.gengyunacquistion.pojo.Indicator> getId(){
        return indicatorMapper.findAll();
    }

}
